package cn.hx.mallorder.dao;

import cn.hx.mallorder.entity.OmsOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * 订单表(OmsOrder)表数据库访问层
 *
 * @author makejava
 * @since 2022-11-30 16:05:56
 */
public interface OmsOrderDao extends BaseMapper<OmsOrder> {

    List<OmsOrder> findByPays();
    List<OmsOrder> queryByUserName(String name);

    OmsOrder findAllById(Long id);

    long updateStatus(OmsOrder id);


    Long findId(Long id);

    Long findLastOrderIdByMemBerId(Long memberId);

    OmsOrder findAllByOrderId(Long id);
}